/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package intelligenttm.SourceFile;

import javafx.scene.image.Image;
import javafx.scene.image.ImageView;

/**
 *
 * @author 望舒凌霄
 */
public class CartoType {
    private String Number;
    private String TypeName;
    private ImageView TypeSampleIMG;

    public CartoType() {
    }
    
    public CartoType(String Number, String TypeName, ImageView TypeSampleIMG) {
        this.Number = Number;
        this.TypeName = TypeName;
        this.TypeSampleIMG = TypeSampleIMG;
    }

    public CartoType(String Number, String TypeName, String ImagePath) {
        this.Number = Number;
        this.TypeName = TypeName;
        this.TypeSampleIMG.setImage( new Image(ImagePath));
    }
    
    public CartoType(String TypeName, ImageView TypeSampleIMG) {
        this.TypeName = TypeName;
        this.TypeSampleIMG = TypeSampleIMG;
    }

    public CartoType(String TypeName, String ImagePath) {
        this.TypeName = TypeName;
        this.TypeSampleIMG.setImage( new Image(ImagePath));
    }

    public String getNumber() {
        return Number;
    }

    public void setNumber(String Number) {
        this.Number = Number;
    }

    public String getTypeName() {
        return TypeName;
    }

    public void setTypeName(String TypeName) {
        this.TypeName = TypeName;
    }

    public ImageView getTypeSampleIMG() {
        return TypeSampleIMG;
    }

    public void setTypeSampleIMG(ImageView TypeSampleIMG) {
        this.TypeSampleIMG = TypeSampleIMG;
    }
    
    public void setTypeSampleIMG(String ImagePath) {
        this.TypeSampleIMG.setImage( new Image(ImagePath));
    }
    
}

